/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package players;

/**
 *
 * @author denaas
 */
public class PlayerFabric {
    public static Player getInstance(int sport) {
        switch(sport) {
           case 1:
                return new FootballPlayer();
           case 2:
                return new BasketballPlayer();
           case 3:
                return new HockeyPlayer();
           default:
               return null;
        }
    }
}
